package com.tensai.study.java.basic.list;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Tensai
 */
public class ListTest {

	@Test
	public void removeIfTest() {
		getList().removeIf(it -> it.equals(2L));
	}

	private List<Long> getList() {
		return new ArrayList<Long>() {{
			add(2L);
		}};
	}
}
